import json

from config import BASE_DIR


def read_json_file(filename):
    data_list=[]
    file_path=BASE_DIR+fr'\data\{filename}.json'
    # print(file_path)
    with open(file_path,'r',encoding='utf-8') as f:
        content=json.load(f)
        for i in content:
            data_list.append(tuple(i.values()))
        # print(data_list)
        return data_list

if __name__ == '__main__':

    read_json_file('login_data_ihrm')
